<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj = {name:"damu",age:18,wife:"zdy",son:"陪悦"}


    //禁止对象的扩展  让一个对象变的不可扩展，也就是永远不能再添加新的属性
    Object.preventExtensions(obj)

    obj.wife2 = "dlrb"
    delete obj.age

    console.log(obj);
</script>
</html>